home *** CD-ROM | disk | FTP | other *** search
/ Erotic Games: Memory / Erotic Games: Memory.iso / mac / air_installers / AdobeAIR.exe / setup.swf / scripts / mx / core / ClassFactory.as < prev    next >
Text File  |  2009-02-12  |  779b  |  36 lines

  1. package mx.core
  2. {
  3.    use namespace mx_internal;
  4.    
  5.    public class ClassFactory implements IFactory
  6.    {
  7.       
  8.       mx_internal static const VERSION:String = "3.0.0.0";
  9.        
  10.       
  11.       public var properties:Object = null;
  12.       
  13.       public var generator:Class;
  14.       
  15.       public function ClassFactory(param1:Class = null)
  16.       {
  17.          super();
  18.          this.generator = param1;
  19.       }
  20.       
  21.       public function newInstance() : *
  22.       {
  23.          var _loc2_:* = null;
  24.          var _loc1_:Object = new generator();
  25.          if(properties != null)
  26.          {
  27.             for(_loc2_ in properties)
  28.             {
  29.                _loc1_[_loc2_] = properties[_loc2_];
  30.             }
  31.          }
  32.          return _loc1_;
  33.       }
  34.    }
  35. }
  36.